home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: malgudi.oar.net!picker!news
- From: Kesheng Huo <kesheng@ct.picker.com>
- Subject: passing C function and its arguement
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <3151AC6D.6E46@ct.picker.com>
- Sender: news@picker.com
- Nntp-Posting-Host: 144.54.49.43
- Content-Transfer-Encoding: 7bit
- Organization: Picker International, Inc.
- Mime-Version: 1.0
- Date: Thu, 21 Mar 1996 19:22:21 GMT
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4c)
-
- I have a question about how to pass a C function with its
- arguement to an object,
-
- For example:
-
- void foo(int agr1, int arg2);
- void foo1(float agr3, double arg4);
-
- class myclass {
- public:
- void FooInvokerHere(aFunc(int agr1, int arg2), ...)
- { aFunc(arg1, arg2); }
- };
-
- main()
- {
- myclass a;
- a.FooInvokerHere(foo, ??????) ;
- a.FooInvokerHere(foo1, ?????) ;
- }
-
- I knew I can pass a function pointer to take care foo, foo1, but
- how to take care of those function arguements.
-
- Any Hint, more than welcome.
-
- Mike Huo
- email: kesheng@ct.picker.com
-